<template>
    <div >
        <button @click="onClick">点击我</button>
        <input v-model="msg"/>
    </div>
</template>
  
<script>
  export default {
    name: 'Test',
    data() {
      return {
        msg: "Hello"
      }
    },
    methods: {
      async onClick() { 
          let result = await this.$TP.getValue(this.msg);
          console.log("我是服务端的组件", result);
            
      }
    }
  }
</script>